﻿@model PerformanceAssessment.Models.AssessmentPeriod

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Assessment Period</legend>

    <div class="display-label">Description</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">Start Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FromDate)
    </div>

    <div class="display-label">End Date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ToDate)
    </div>

    <div class="display-label">Previous Assessment Period</div>
    <div class="display-field">
        @if (Model.PreviousAssessmentPeriod != null)
        {
            @Html.Label(Model.PreviousAssessmentPeriod.Description)
        }
    </div>
    <div class="editor-label">
        Evaluated Teams
    </div>
    <ul id="Teams">
        @for (int i = 0; i < Model.Teams.Count; i++)
        {
            <li>
                <label>@Model.Teams[i].Name</label>
            </li>
        }
    </ul>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
